﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UC_HangMoiVe.ascx.cs" Inherits="Controls_UC_HangMoiVe" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
    .style2
    {
        width: 164px;
        height: 23px;
    }
    </style>

            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                AutoGenerateColumns="False" onpageindexchanging="GridView1_PageIndexChanging" 
                 PageSize="7" 
                ShowHeader="False" Width="100%">
                <PagerSettings PageButtonCount="3" />
                <Columns>
                    <asp:TemplateField>
                        <ItemTemplate>
                            <table class="style1" style="width: 100%">
                                <tr>
                                    <td align="right" style="width: 164px; padding-right: 20px;" valign="top">
                                        <asp:Image ID="Image2" runat="server" ImageUrl="~/images/post_new.gif" />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" style="width: 164px" valign="top">
                                        <a class="lightbox" href='<%# Eval("Hinh2") %>'>
                                        <asp:Image ID="Image1" runat="server" Height="55px" 
                                            ImageUrl='<%# Eval("Hinh") %>' ToolTip='<%# Eval("TenSp") %>' Width="50px" />
                                        </a>&nbsp;</td>
                                </tr>
                                <tr>
                                    <td align="center" class="style2">
                                        <asp:HyperLink ID="HyperLink1" runat="server" 
                                            NavigateUrl='<%# "../Chi_tiet_sp.aspx?ten=" + Eval("TenSp")+"&ma="+Eval("TenHang") %>' 
                                            Text='<%# Eval("TenSp") %>' ToolTip='<%# Eval("Gia","{0:#,##0} VND") %>'></asp:HyperLink>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="center" style="width: 164px">
                                        <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="#3366FF" 
                                            Text="Giá :"></asp:Label>
                                        &nbsp;<asp:Label ID="Label2" runat="server" style="color: #FF5050; font-weight: 700" 
                                            Text='<%# Eval("Gia","{0:#,##0} VND") %>'></asp:Label>
                                        <br />
                                    </td>
                                </tr>
                            </table>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <PagerStyle HorizontalAlign="Center" />
            </asp:GridView>
        
<asp:Label ID="lblErr" runat="server" ForeColor="Red"></asp:Label>
